Hi,
I just learned about pdpyras and would like to use it for the convenience it brings. One of my first tasks is to get the business service hierarchy we built in PD.
I am able to get the data via python requests from https://api.pagerduty.com
/service_dependencies/business_services/{id}.
(e.g. response = requests.request(“GET”, url, headers=headers))
Upon trying this in pdpyras…
df_bsvcs = pd.DataFrame(session.rget(’/service_dependencies/business_services/ABCD1EF’))
I receive the following PDClientError:
PDClientError: Cannot extract object; expected top-level property “ABCD1EF”, but could not find it in the response schema. Response body={“relationships”:[{“dependent_service”:{“id”:“ABCD1EF”,“relationships”:null,“type”:"business_servic
It’s probably my unfamiliarity with pdpyras. Appreciate any help.
Thanks.
-Emmanuel-